import { IsNotEmpty, IsOptional, Max, MaxLength } from "class-validator";
import { CreateDto } from "src/store/dto/CreateDto";

export class AddOrgDto extends CreateDto {

  /**
   * 上级组织ID
   */
  @IsOptional()
  @Max(1000000)
  parentId: number;

  /**
   * 组织名称
   */
  @IsNotEmpty()
  @MaxLength(30)
  orgName: string;
}